package org.dawing.shop.cart.common.config;

import feign.Logger;
import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by miou on 2017/4/10 0010.
 */
@Configuration
public class FeignConfiguration {

    @Bean
    Request.Options feignOptions() {
        return new Request.Options(/**connectTimeoutMillis**/10 * 1000, /** readTimeoutMillis **/10 * 1000);
    }

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
